{extends file='layout/admin.html'}

{block name='title'}Manage Assets  - Geek-Zoo CMS{/block}

{block name='content'}

<script type="text/javascript" src="js/asset_search.js"></script>

<h1>Business Input List</h1>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="content_table">
	<!-- <thead>
		<tr style="height: 10px">
			<th class="left" style="width: 50%;">Title</th>
			<th style="border-left: 1px solid #CCC; width: 10%;">Date Added</th>
			<th style="border-left: 1px solid #CCC; width: 15%;">Created By</th>
			<th class="right" style="border-left: 1px solid #CCC; width: 15%;" >Action</th>
		</tr>
	</thead> -->
	<tbody class="text_indent">
		{foreach $data as $val}
		{if $val@iteration % 2}<tr>{else}<tr class="odd" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #EEE; background-position: initial initial; background-repeat: initial initial; ">{/if}
			<td><a href="admin/business_input/view.html?id={$val.id}">{$val.input_1}</a></td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial;">{$val.input_2}</td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial;">{$val.input_3}</td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial;">{$val.input_4}</td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial;">{$val.input_5}</td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial;">{date('m/d/Y', $val.add_time)}</td>
			<td style="border-right-style: none; border-right-width: initial; border-right-color: initial; text-align: center;">
				<a href="#">Select Actions <img src="images/i.gif" alt="Action menu" class="arrow" /></a>
				<div class="action_btn" style="display: none;">
					<ul class="action_menu">
						<li><a href="admin/business_input/delete.html?id={$val.id}" class="delete">Delete</a></li>
					</ul>
				</div>
			</td>
		</tr>
		{/foreach}
	</tbody>
</table>
<div class="clearfix sub_nav">
{include file="lib/admin_pager.html"}
</div>
<script type="text/javascript" charset="utf-8">
// show_msg confirm('sssss?',functio(){
	//ssss
// })

$('.arrow').each(function(){
  $(this).parent().popup($(this).parent().next());
});

$(".delete").click(function(){
	  var url = this.href;
		confirm('Are you sure to delete this?', function(){
	    location.href = url;
		});
		return false;
});
</script>
{/block}
